package com.cadre.basic.datastructure.graph;

// 线段类
public class Edge {

    // 被连接的点
    Vertex linked;

    // 权重
    int weight;

    public Edge(Vertex linked){
        this(linked,1);
    }

    public Edge(Vertex linked,int weight){
        this.linked = linked;
        this.weight = weight;
    }

}
